import { addColumnEllipsis } from "utils/common";

let columns = [
  {
    dataIndex: "id",
    title: "ID",
    align: 'center',
    width: 50
  },
  {
    dataIndex: "name",
    title: "名称"
  },
  {
    dataIndex: "method",
    title: "计费方式",
    align: 'center',
    scopedSlots: { customRender: "methodSlots" },
    width: 100
  },
  {
    dataIndex: "first",
    title: "首件(个)/首重(kg)",
    align: 'center'
  },
  {
    dataIndex: "firstFee",
    title: "运费(元)",
    align: 'center'
  },
  {
    dataIndex: "additional",
    title: "续件(个)/续重(kg)",
    align: 'center'
  },
  {
    dataIndex: "additionalFee",
    title: "续费(元)",
    align: 'center'
  },
  {
    dataIndex: "weigh",
    title: "权重",
    align: 'center',
    width: 50
  },
  {
    dataIndex: "createTime",
    title: "创建时间",
    align: 'center',
    width: 150
  },
  {
    dataIndex: "modifyTime",
    title: "更新时间",
    align: 'center',
    scopedSlots: { customRender: "modifyTimeSlots" },
    width: 150
  },
  {
    dataIndex: "operation",
    title: "操作",
    scopedSlots: { customRender: "operation" },
    width: 100,
    align: 'center'
  }
];

columns = addColumnEllipsis(columns);
export default columns;
